<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="row">
        <div class="col-md-4 col-xs-12 form-group">
            <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('审批名称')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-name" data-rule="required" type="text" class="form-control" name="row[name]" value=""/>
            </div>
        </div>

        <div class="col-md-4 col-xs-12 form-group">
            <label for="c-types" class="control-label col-xs-12 col-sm-2">{:__('关联对象')}:</label>
            <div class="col-xs-12 col-sm-8">
                <select class="form-control selectpicker" data-rule="required" name="row[types]" id="c-types">
                    <option value="contract">合同</option>
                    <option value="receivables">回款</option>
					<option value="invoice">发票</option>
                </select>

            </div>
        </div>
		<div class="col-md-4 col-xs-12 form-group">
            <label for="c-types" class="control-label col-xs-12 col-sm-2">{:__('适用组')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input   data-source="facrm/common/group" data-field="name"
                         class="form-control selectpage" name="row[group_ids]" type="text" value="" data-multiple="true">
                <span class="text-red">留空通用</span>

            </div>
        </div>

        <div class="col-md-4 col-xs-12 form-group">
            <label for="c-remark" class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
            <div class="col-xs-12 col-sm-8">
                <textarea id="c-remark" class="form-control" name="row[remark]"></textarea>
            </div>
        </div>
		
		<div class="col-md-4 col-xs-12 form-group">
            <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('权重')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-weigh"  type="number" class="form-control" name="row[weigh]" value=""/>
            </div>
		</div>
    </div>

    <div class="row">
        <div class="col-md-10 col-xs-12 form-group">
            <label for="c-remark" class="control-label col-xs-12 col-sm-2">{:__('审批类型')}:</label>
            <div class="col-xs-12 col-sm-8">
                {:build_radios('row[config]', ['1'=>__('固定审批'), '0'=>__('授权审批')])}
                <br/>
                <div class="table-responsive1">
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap">
                        <thead>
                        <th>{:__('顺序')}</th>
                        <th>{:__('类型')}</th>
                        <th>{:__('选择')}</th>
                        <th>{:__('操作')}</th>
                        </thead>
                        <tbody>
                        <tr>
                            <td>1</td>
                            <td>
                                <select class="form-control selectpicker" data-rule="required" name="step[1][type]">
									<option value="2">指定人员</option>
                                    <option value="1">上级主管</option>
									<option value="3">指定部门</option>
                                </select>
                            </td>
                            <td>
                                <input   data-source="facrm/common/selectpage/model/admin/type/all" data-field="nickname"
                                       class="form-control selectpage" name="step[1][admin_ids]" type="text" value="" data-multiple="true">
                            </td>
                            <td>
                                <button type="button" class="btn btn-default delRow" >{:__('Delete')}</button>
                            </td>
                        </tr>

                        </tbody>
                    </table>
                    <button type="button" class="btn btn-primary addRow" >{:__('添加审批层级')}</button>
                </div>
            </div>
        </div>
    </div>



    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('submit')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>







